package com.Ip.Controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RequestMapping;

import com.Ip.service.UserService;
@Controller
@RequestMapping("/con2")
public class myController2 {
	@Autowired
	@Qualifier("userService")
	UserService userService;
	@RequestMapping("/index")
	public String add(){
		userService.add();
		String aString=null;
		aString.equals(123);
		return "index";
	}
	
//	@ExceptionHandler
//	public String error(HttpServletRequest request,Exception ex){
//		request.setAttribute("ex", ex);
//		return "error";
//	}
}
